Computing longest palindromic substring after single-character or block-wise edits
نویسندگان
چکیده
Palindromes are important objects in strings which have been extensively studied from combinatorial, algorithmic, and bioinformatics points of views. It is known that the length longest palindromic substrings (LPSs) a given string T n can be computed O(n) time by Manacher's algorithm [12]. In this paper, we consider problem finding LPS after edited. We present an uses space for preprocessing, answers LPSs O(log(min{σ,logn})) single character substitution, insertion, or deletion, where σ denotes number distinct characters appearing T. also propose O(ℓ+loglogn) time, existing substring replaced arbitrary ℓ.
منابع مشابه
Computing the Longest Unbordered Substring
A substring of a string is unbordered if its only border is the empty string. The study of unbordered substrings goes back to the paper of Ehrenfeucht and Silberger [Discr. Math 26 (1979)]. The main focus of their and subsequent papers was to elucidate the relationship between the longest unbordered substring and the minimal period of strings. In this paper, we consider the algorithmic problem ...
متن کاملComputing a Longest Common Palindromic Subsequence
The longest common subsequence (LCS) problem is a classic and well-studied problem in computer science. Palindrome is a word which reads the same forward as it does backward. The longest common palindromic subsequence (LCPS) problem is a variant of the classic LCS problem which finds a longest common subsequence between two given strings such that the computed subsequence is also a palindrome. ...
متن کاملComputing Longest Common Substring and All Palindromes from Compressed Strings
This paper studies two problems on compressed strings described in terms of straight line programs (SLPs). One is to compute the length of the longest common substring of two given SLP-compressed strings, and the other is to compute all palindromes of a given SLPcompressed string. In order to solve these problems efficiently (in polynomial time w.r.t. the compressed size) decompression is never...
متن کاملLongest Common Substring with Approximately k Mismatches
In the longest common substring problem we are given two strings of length n and must find a substring of maximal length that occurs in both strings. It is well-known that the problem can be solved in linear time, but the solution is not robust and can vary greatly when the input strings are changed even by one letter. To circumvent this, Leimeister and Morgenstern introduced the problem of the...
متن کاملShortest unique palindromic substring queries in optimal time
A palindrome is a string that reads the same forward and backward. A palindromic substring P of a string S is called a shortest unique palindromic substring (SUPS) for an interval [s, t] in S, if P occurs exactly once in S, this occurrence of P contains interval [s, t], and every palindromic substring of S which contains interval [s, t] and is shorter than P occurs at least twice in S. The SUPS...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Theoretical Computer Science
سال: 2021
ISSN: ['1879-2294', '0304-3975']
DOI: https://doi.org/10.1016/j.tcs.2021.01.014